<div class="main_content">
	<div id="friend_requests_received">
		<h2>Friend Requests Received</h2>		
		<% if !@friend_requests_received.nil? %>
		<%@friend_requests_received.each do |friendship| %>
			<% friend = Entity.find(friendship.entity_id) %>
			<div class="friend_request_single">
			    <h4><%= link_to friend.name, show_friend_path(friend), :class => 'entity_link' %></h4>
				<p><%= friend.description %></p>
				<%= link_to 'Accept friend request from ' + friend.name, accept_friend_request_path(friendship.id), :confirm => 'Are you sure?' %>
				<%= link_to 'Deny', deny_friend_request_path(friendship.id), :confirm => 'Are you sure?' %>
				<%= link_to 'Block', block_friend_request_path(friendship.id), :confirm => 'Are you sure?' %>
			</div>
			<% end %>	
		<% end %>		
	</div>
	<div id="friend_requests_sent">	
		<h2>Friend Requests Sent</h2>		
		<% if !@friend_requests_made.nil? %>
		<%@friend_requests_made.each do |friendship| %>
			<% friend = Entity.find(friendship.friend_id) %>
			<div class="friend_request_single">
			    <h4><%= link_to friend.name, show_friend_path(friend), :class => 'entity_link' %></h4>
				<p><%= friend.description %></p>
				<%= link_to 'Delete friend request to ' + friend.name, remove_friend_request_path(friend.id), :confirm => 'Are you sure?' %>
			</div>
			<% end %>	
		<% end %>		
	</div>
	<div id="wrapper"></div>
</div>